import { defineStore } from 'pinia';
import { getPartDetail } from 'src/services/repairService';

export const useMaintenanceOrder = defineStore('useMaintenanceOrderStore', {
  state: () => ({
    stock_code:'',
    serial_no:'',
    job_order:''
  }),
  getters: {
  },
  actions: {
    async getPartDetailData(stock_code:string){
      const res = await getPartDetail(stock_code)
      if(res.data){
        console.log(res.data);
        
      }
    }
  }
});
